﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class admin_ReadAccess : System.Web.UI.Page
{
    DataSet dataSet;
    protected void Page_Load(object sender, EventArgs e)
    {
        dataSet = DB.readArt();
        dataGridView1.Width = 900;
        dataGridView1.HorizontalAlign = HorizontalAlign.Center;
        dataGridView1.DataSource = dataSet.Tables[0];
        dataGridView1.DataBind();
    }
    protected void dataGridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        dataGridView1.PageIndex = e.NewPageIndex;
        dataGridView1.DataSource = dataSet.Tables[0];
        dataGridView1.DataBind();
    }
}